package com.wanmait.cookbook.vo;

import java.sql.Timestamp;
import java.util.ArrayList;

/*
 * ʳ�����۱�
 */



public class CookbookComment {
	 private Integer id;
	 private Cookbook cookbook;//����
	 private Userinfo userinfo;//�û���Ϣ
	 private Userinfo parentComment;//����������Ϣ
	 private String content;//��������
	 private Timestamp inputTime;//����ʱ��
	 private Boolean news;//��Ϣ֪ͨ��1�Ѷ�/0δ����
	 private Boolean enable;//��Ч��1��Ч/0��Ч��
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Cookbook getCookbook() {
		return cookbook;
	}
	public void setCookbook(Cookbook cookbook) {
		this.cookbook = cookbook;
	}
	public Userinfo getUserinfo() {
		return userinfo;
	}
	public void setUserinfo(Userinfo userinfo) {
		this.userinfo = userinfo;
	}
	public Userinfo getParentComment() {
		return parentComment;
	}
	public void setParentComment(Userinfo parentComment) {
		this.parentComment = parentComment;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public Timestamp getInputTime() {
		return inputTime;
	}
	public void setInputTime(Timestamp inputTime) {
		this.inputTime = inputTime;
	}
	public Boolean getNews() {
		return news;
	}
	public void setNews(Boolean news) {
		this.news = news;
	}
	public Boolean getEnable() {
		return enable;
	}
	public void setEnable(Boolean enable) {
		this.enable = enable;
	}
	  private CookbookComment parent; //上一级评论
	   private ArrayList<CookbookComment> children; // 存放该评论的所有子评论
	  public CookbookComment getParent() {
	    return parent;
	  }
	  public void setParent(CookbookComment parent) {
	    this.parent = parent;
	  }
	  public ArrayList<CookbookComment> getChildren() {
	    return children;
	  }
	  public void setChildren(ArrayList<CookbookComment> children) {
	    this.children = children;
	  }
	 
	 
}
